<ion-view id="accountbalance" view-title="账户余额" cache-view="false" align-title="center" hide-tabs>

  <!-- 账户余额-页眉 -->
 
  <ion-content class=" has-header" scroll="ture" >
    <ion-refresher pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
    <!-- 账户余额 -->
    <div class ="main" style ="margin-bottom: 20px">
      <div  ng-click="Accountrecord($index);$event.stopPropagation();" ng-repeat="item in items" >
        <div class = "item-top" >
            <div class ="item">
                <table class ="table" style="table-layout:fixed;word-wrap:break-word;" width="100%">
                    <tr style ="display: none">
                        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                        <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
                    </tr>
                    <tr >
                        <td  align="center" colspan="10"><span class ="text">{{ item[1] }}</span></td>
                    </tr>
                    <tr>
                        <td colspan="2"><span>余&nbsp;&nbsp;额</span></td>
                        <td colspan="8"><span class ="num">{{  item[4] }}</span></td>
                    </tr>
                    <tr>
                        <td  colspan="2"><span>账&nbsp;&nbsp;号</span></td>
                        <td  colspan="8"><span>{{ item[2] }}</span></td>
                    </tr>
                    <tr>
                        <td colspan="2" ><span>银&nbsp;&nbsp;行</span></td>
                        <td colspan="8"><span  style ="white-space: normal">{{ item[3] }}</span></td>
                    </tr>
                    <tr>
                        <td colspan="4"><span>上次查询时间</span></td>
                        <td colspan="6"><span>{{ item[5]  }}</span></td>
                    </tr>
                </table>
            </div>
        </div>
        <!--{{ $index }}-->

        <div class = "item-bottom item"  id="{{ $index }}" style ="display: none;background-color: #fff" >
          <div><p style ="text-align: left"><span>银行透支</span> <span>{{ bank| currency:'¥' }}</span></p></div>
          <table class ="table" ng-repeat ="key in data[$index]" class ="bor-top" style="table-layout:fixed;word-wrap:break-word; margin-bottom: 10px;border-bottom: 1px solid #cdc8b4" width="100%" >
            <tr style ="display: none">
              <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
              <td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td>
            </tr>
            <tr >
              <td colspan="5"><span>账户组名</span></td>
              <td colspan="5"><span class ="num">{{ key.groupName }}</span></td>
            </tr>
            <tr >
              <td colspan="5"><span>贡献金额、组内透支</span></td>
              <td colspan="5"><span class ="num">{{key.contributionAmount | currency:'' }}</span></td>
            </tr>
            <tr >
                <td colspan="5"><span>留底金额</span></td>
                <td colspan="5"><span class ="num">{{key.managedAmount | currency:''}}</span></td>
            </tr>
          </table>
        <!--<div ng-repeat ="key in value" class ="bor-top">-->

        <!--<div><p style ="text-align: left"><span>账户组名</span> <span>{{ key.groupName }}</span></p></div>-->
        <!--<div><p style ="text-align: left"><span>贡献金额、组内透支</span> <span>{{key.contributionAmount | currency:'' }}</span></p></div>-->
        <!--<div><p style ="text-align: left"><span>留底金额</span> <span>{{key.managedAmount | currency:''}}</span></p></div>-->
        <!--</div>-->
      </div>
      </div>
    </div>

















  </ion-content>

</ion-view>
